﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using SpreadsheetGear;


namespace WorkbookDesigner.Addons.WorkbookExplorer.Model
{
    public class SheetModel : TreeNode
    {
        public SheetModel(IWorksheet worksheet)
        {
            Worksheet = worksheet;
            this.Name = $"{worksheet.Workbook.Name}-{worksheet.Name}";
            this.Text = worksheet.Name;
        }
        public IWorksheet Worksheet { get; private set; }
    }
}
